import {request} from 'umi'
import {Ilogin} from '@/interface/login'
export const getlogin=(data:Ilogin)=>{   //登录接口
    return request("/user/login",{method:'post',data})
}
interface I{
    user_id:string
}
export const  get_Authority=(params:I)=>{   //获取视图权限
    return request("/user/new",{method:'get',params})
}

export const get_UserInfo=()=>{   //获取用户信息
   return request("/user/userInfo",{method:'get'})
}
